ns16550: reset bar_64 on each iteration
authorJan Beulich <jbeulich@suse.com>
Tue, 17 Nov 2015 12:22:44 +0000 (13:22 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Nov 2015 12:22:44 +0000 (13:22 +0100)
commit7efcc5844437837c9fe26ab4935dd8f034b230a4
tree8fa86af2ac94c291e51f8c89bc300fba8df075b9
parentf2d2de56582cc2fee93554c0225fc9d560d13ced
ns16550: reset bar_64 on each iteration

Re-using the possibly non-zero value from a previous iteration can't
do any good.

Take the opportunity and
- limit a few other variables' scopes at once,
- adjust a few types.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/drivers/char/ns16550.c